﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : MultiServerEngine | ServerFramework | RealmListMap.cs
// //  Created : 2016 - 02 - 16 20:53
// //  Modified: 2016 - 02 - 20 12:32
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using ServerFramework.Implementation.Database.Domain;

namespace ServerFramework.Implementation.Database.Mapping
{
    public class RealmListMap : ClassMap<RealmList_T>
    {
        public RealmListMap()
        {
            Schema("mseauth");
            Table("realmlist");
            Id(x => x.Id).GeneratedBy.Identity().Column("Id");
            Map(x => x.Name).Column("Name").Not.Nullable();
            Map(x => x.Address).Column("Address").Not.Nullable();
            Map(x => x.LocalAddress).Column("LocalAddress").Not.Nullable();
            Map(x => x.LocalSubnetMask).Column("LocalSubnetMask").Not.Nullable();
            Map(x => x.Port).Column("Port").Not.Nullable();
            Map(x => x.Icon).Column("Icon").Not.Nullable();
            Map(x => x.Timezone).Column("Timezone").Not.Nullable();
            Map(x => x.Population).Column("Population").Not.Nullable();
        }
    }
}
